</div>

<div id="footer">
<div class="footer-container">

<div id="blog-label2">
<div class="label">
<br />
<h3>Work</h3>
<h2>Latest From Portfolio</h2>
</div>
</div>
<br /><br />

<?php 
global $options;
foreach ($options as $value) {
if (get_settings( $value['id'] ) === FALSE) { $$value['id'] = $value['std']; } else { $$value['id'] = get_settings( $value['id'] ); } }
?>

<?php $myposts = get_posts('cat='.$blogofolio_portfolio_cat.'&numberposts='.$blogofolio_portfolio_entries.'&offset=0');foreach($myposts as $post) :?>

<div class="entry-footer">
<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>">
			<?php if (strlen($post->post_title) > 20) {
			echo substr(the_title($before = '', $after = '', FALSE), 0, 20) . '...'; } else {
				the_title();
			} ?>	
</a></h2>

<?php $data = get_post_meta( $post->ID, 'post-images', true ); ?> 
<?php // if there's a single post image
 if( $data[ 'post-image-main' ] ) : ?>
				<div class="thumb-single">
				<a href="<?php the_permalink() ?>" rel="bookmark" title=""><img height="170px" width="268px" alt="" src="<?php bloginfo('stylesheet_directory'); ?>/timthumb.php?src=<?php if(get_post_meta($post->ID, 'post-images', $single = true)){echo $data[ 'post-image-main' ];} else{bloginfo('url'); echo "/wp-content/themes/moi-folio/images/no-thumbnail-portfolio.png";} ?>&amp;h=170&amp;w=268&amp;zc=1&amp;q=100" /></a>
				</div>
<?php else: ?>
				<div class="thumb-single">
				<a href="<?php the_permalink() ?>" rel="bookmark" title=""><img height="170px" width="268px" alt="" src="<?php bloginfo('stylesheet_directory'); ?>/images/no-thumbnail-portfolio.png" /></a>
				</div>
<?php endif; ?> 
</div>

<?php endforeach; ?>

<div class="read-more2">
<?php
    // Get the ID of a given category
    $category_id = get_cat_ID( 'Portfolio' );

    // Get the URL of this category
    $category_link = get_category_link( $category_id );
?>

<!-- Print a link to this category -->
<a href="<?php echo $category_link; ?>" title="Category Name" class="cat-link">View all from Portfolio</a> 
</div>

<div class="clear"></div>
</div>

<div class="footer-credits">
<div class="footer-container">
	<p class="credit-left">&copy; <?php echo date("Y"); ?> <?php bloginfo('name'); ?> | Theme by <a href="http://socialshouts.com/" title="Social Shouts - Real life short stories!">SocialShouts</a> | <a href="http://slodive.com/" title="SloDive - Design Resources and Inspiration">SloDive</a> | <a href="http://www.smashingmagazine.com/">SmashingMagazine</a></p> 
	<p class="credit-right"><?php global $user_ID, $user_identity, $user_level ?>
            <?php if ( $user_level >= 10 ) : ?>
<a href="<?php echo get_option('home'); ?>/wp-admin/">Dashboard</a> | 
            <?php endif // $user_level >= 10 ?><?php wp_loginout(); ?> | <a href="#top">Top<img src="<?php bloginfo('stylesheet_directory'); ?>/images/arrow.png" alt="" class="credit-right-arrow" /></a>
</p>
<p class="clear"></p>
<br />
</div>
</div>
</div>

	<div id="preloaded-images">
   <img src="<?php bloginfo('stylesheet_directory'); ?>/images/searchbg2.png" width="1" height="1" alt="" />
   <img src="<?php bloginfo('stylesheet_directory'); ?>/images/sb-bg-hover.png" width="1" height="1" alt="" />
   <img src="<?php bloginfo('stylesheet_directory'); ?>/images/bullet-hover.png" width="1" height="1" alt="" />
   <img src="<?php bloginfo('stylesheet_directory'); ?>/images/comment2.png" width="1" height="1" alt="" />
   <img src="<?php bloginfo('stylesheet_directory'); ?>/images/name2.png" width="1" height="1" alt="" />
   <img src="<?php bloginfo('stylesheet_directory'); ?>/images/email2.png" width="1" height="1" alt="" />
   <img src="<?php bloginfo('stylesheet_directory'); ?>/images/url2.png" width="1" height="1" alt="" />
   <img src="<?php bloginfo('stylesheet_directory'); ?>/images/submit2.png" width="1" height="1" alt="" />
</div>

<?php wp_footer(); ?>

<!-- All the Java Scripts starts here -->
<script type="text/javascript">
//<![CDATA[

  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-5736035-8']);
  _gaq.push(['_trackPageview']);

  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();

//]]>
</script><script type="text/javascript">
$(document).ready(function() {
   
    $('a[href=#top]').click(function(){
        $('html, body').animate({scrollTop:0}, 'slow');
        return false;
    });

});
</script><script type="text/javascript">
//<![CDATA[
 <!-- Tool tips -->
$(document).ready(function()
{
   $('a[rel="modal"]:first').qtip(
   {
      content: {
         title: {
            text: 'Subscribe to RSS feed via Email',
            button: 'Close'
         },
url: '<?php bloginfo('stylesheet_directory'); ?>/subscribe.html'
      },
      position: {
         target: $(document.body),
         corner: 'center'
      },
      show: {
         when: 'click',
         solo: true
      },
      hide: false,
      style: {
         width: { max: 350 },
         padding: '14px',
         border: {
            width: 9,
            radius: 9,
            color: '#666666'
         },
         name: 'light'
      },
      api: {
         beforeShow: function()
         {
            $('#qtip-blanket').fadeIn(this.options.show.effect.length);
         },
         beforeHide: function()
         {
            $('#qtip-blanket').fadeOut(this.options.hide.effect.length);
         }
      }
   });
   $('<div id="qtip-blanket">')
      .css({
         position: 'absolute',
         top: $(document).scrollTop(),
         left: 0,
         height: $(document).height(),
         width: '100%',
         opacity: 0.7,
         backgroundColor: 'black',
         zIndex: 5000
      })
      .appendTo(document.body)
      .hide();
});
$(document).ready(function() 
{
      $('.twitter').qtip(
   {
      content: 'Follow me on Twitter',
          style: { 
          border: {
             width: 5,
             radius: 8
   },
                         padding: 10, 
             textAlign: 'center',
             tip: true,
             name: 'dark'
   },
      position: {
          adjust: { x: -280, y: 22 },
      corner: {
             target: 'rightmiddle',
             tooltip: 'rightMiddle'
   }
   }
   });
   $('.rss').qtip(
   {
      content: 'Subscribe to RSS Feed in Reader',
          style: { 
          border: {
             width: 5,
             radius: 8
   },
                         padding: 10, 
             textAlign: 'center',
             tip: true,
             name: 'dark'
   },
      position: {
          adjust: { x: -5, y: -40 },
      corner: {
             target: 'topMiddle',
             tooltip: 'bottomMiddle'
   }
   }
   });
      $('.rssemail').qtip(
   {
      content: 'Subscribe to RSS Feed via Email',
          style: { 
          border: {
             width: 5,
             radius: 8
   },
                         padding: 10, 
             textAlign: 'center',
             tip: true,
             name: 'dark'
   },
      position: {
          adjust: { x: -7, y: -40 },
      corner: {
             target: 'topMiddle',
             tooltip: 'bottomMiddle'
   }
   }
   });
         $('.facebook').qtip(
   {
      content: 'Get updated via Facebook',
          style: { 
          border: {
             width: 5,
             radius: 8
   },
                         padding: 10, 
             textAlign: 'center',
             tip: true,
             name: 'dark'
   },
      position: {
          adjust: { x: -6, y: -40 },
      corner: {
             target: 'topMiddle',
             tooltip: 'bottomMiddle'
   }
   }
   });
         $('.delicious').qtip(
   {
      content: 'Bookmark on Delicious',
          style: { 
          border: {
             width: 5,
             radius: 8
   },
                         padding: 10, 
             textAlign: 'center',
             tip: true,
             name: 'dark'
   },
      position: {
          adjust: { x: 0, y: -40 },
      corner: {
             target: 'topMiddle',
             tooltip: 'bottomMiddle'
   }
   }
   });
});
//]]>
</script><script type="text/javascript">
//<![CDATA[
 <!-- Tweet loader -->
                        $(document).ready(function() {
                                $("#twitter").getTwitter({
                                        userName: "Thumb_Press",
                                        numTweets: 1,
                                        loaderText: "Loading tweet...",
                                        slideIn: true,
                                        showHeading: false,
                                        headingText: "Tweets",
                                        showProfileLink: false
                                });
                        });
//]]>
</script><script type="text/javascript">
//<![CDATA[
 <!-- Super fish menu --> 
jQuery(document).ready(function(){ 
        $('.nav').supersubs({
                minWidth:               12,                                             // requires em unit.
                maxWidth:               25,                                             // requires em unit.
                extraWidth:     2                                               // extra width can ensure lines don't sometimes turn over due to slight browser differences in how they round-off values
    }).superfish({
            animation:   {opacity:'show',height:'show'},  // fade-in and slide-down animation 
            autoArrows:  true,                           // disable generation of arrow mark-up 
            dropShadows: false                            // disable drop shadows
        }); 
    }); 
//]]>
</script><!-- Java scripts ends here -->
</body>
</html>